﻿namespace CRM.Business.Services
{
    using System.Collections.Generic;
    using CRM.DataAccess.DAOs;
    using CRM.DataAccess.Entities;

    public static class SalutationService
    {
        /// Gets or sets the role DAO.
        private static SalutationDAO SalutationDAO = new SalutationDAO();

       //Get All Salutation
        public static List<SALUTATION> GetAllSalutatioin()
        {
            return SalutationDAO.GetAllSalutatioin();
        }
        // get Salutaion by Name
        public static SALUTATION GetSalutationByName(string name)
        {
            return SalutationDAO.GetSalutationByName(name);
        }
        // add new salutation
        public static int AddnewSalutation(SALUTATION sal)
        {
            return SalutationDAO.AddNewSalutation(sal);
        }
    }
}
